<!--
 * @Author: GKN
 * @Date: 2023-10-24 11:53:29
 * @LastEditTime: 2023-10-24 17:24:14
 * @LastEditors: GKN
 * @Description: 
 * @FilePath: \mod\src\view\user\expand\e2.vue
 * 可以输入预定的版权声明、个性签名、空行等
-->
<template>
    <div v-loading="loading">
        <el-form :model="form" label-width="120px" size="large">
            <el-row :gutter="20">
                <el-col :span="12">
                    <el-form-item label="期望发表时间">
                        <el-col :span="24">
                            <el-date-picker
                                v-model="form.startTm"
                                type="date"
                                placeholder="选择期望发表时间"
                                size="large"
                                style="width:100%;"
                                format="YYYY/MM/DD"
                                value-format="YYYY-MM-DD"
                            />
                        </el-col>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="署名">
                        <el-col :span="24">
                            <el-input v-model="form.sign"/>
                        </el-col>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="刊物级别/名称">
                        <el-col :span="24">
                            <el-input v-model="form.pt"/>
                        </el-col>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="联系电话">
                        <el-col :span="24">
                            <el-input v-model="form.phone"/>
                        </el-col>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="字数">
                        <el-col :span="24">
                            <el-input v-model="form.size"/>
                        </el-col>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="色彩">
                        <el-col :span="24">
                            <el-input v-model="form.color"/>
                        </el-col>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="留言咨询">
                        <el-col :span="24">
                            <el-input type="textarea" placeholder="填写您的具体需求" maxlength="1000" :rows="10" show-word-limit v-model="form.mark"/>
                        </el-col>
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>
        <div class="cursor-p btn-submit" @click="submit">提交</div>
    </div>
    
</template>

<script setup>
import { ref,reactive } from "vue";
import { ElMessage } from 'element-plus'
    const form = ref({
        a1:'',
        a2:''
    })
    const loading = ref(false)
    const submit = ()=>{
        loading.value = true
        proxy.$http.request(proxy.$api.user_Recbook,'post',{
            ...form.value
        },false, function (res) {
            if(res&&res.data){
                if(res.data.code != 0){
                    proxy.$comJs.msg('error','提交失败')
                }else{
                    proxy.$comJs.msg('success','提交成功')
                }
            }
        })
        loading.value = false
        
    }
</script>

<style lang='less' scoped>
/deep/ .el-input--large .el-input__wrapper{
    padding: 0 0px;
    background:#f6f7f9;
    
}
/deep/ .el-textarea__inner{
    background:#f6f7f9;
    padding: 10px 10px;
}
/deep/.el-input--large .el-input__inner{
    padding:0 10px;
}
::v-deep {

.el-input__inner {
  border: 0;
  border-radius: 0px;

  // &:focus {
  //   border-bottom: 1px solid #409eff;
  // }
}

.el-textarea__inner {
  resize: none;
  /* 这个是去掉 textarea 下面拉伸的那个标志，如下图 */
  border: 0;
  border-radius: 0px;

  // &:focus {
  //   border-bottom: 1px solid #409eff;
  // }
}
}
</style>
  
  

